package com.tencent.service.impl;

import com.tencent.mapper.ShowMapper;
import com.tencent.service.ShowpeoService1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;
@Service
public class ShowpeoService2 implements ShowpeoService1 {

    @Autowired
    private ShowMapper showMapper;


    @Override
    public Map<String, Object> getBusinessReport() throws Exception {
        Integer member = showMapper.findMember();
        Integer member1 = showMapper.insertMember();

        Map<String,Object> stringObjectMap =  new HashMap<>();
        stringObjectMap.put("member",member);
        stringObjectMap.put("member1",member1);
        return stringObjectMap;
    }
}
